//用户相关api接口
import request from '@/utils/requiest'

//1.添加订单
export const addOrderApi = (userid: string)=> request.post('/order/addOrder',{userid})

// 获取订单列表
export const orderInfoApi = (userid: string)=> request.get('/user/orderlist',{
  params:{userid}
})

//3修改地址信息
interface MyAddressInfo {
  userid: string
  name: string
  tel: string
  province: string
  city: string
  county: string
  addressDetail: string
  time: string
}
export const updateAddressInfoApi = (info: {})=>  request.post('/order/updateOrderAddress',{info})